package com.manong.bookstore.user.feign;

import com.manong.common.utils.R;
import com.manong.bookstore.user.entity.ShoppingCartEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpSession;

@FeignClient("bookstore-shoppingcart")
public interface ShoppingcartFeignService {
	@RequestMapping("/shoppingcart/shoppingcart/save")
	public R save(@RequestBody ShoppingCartEntity shoppingCart);

	@RequestMapping("/shoppingcart/shoppingcart/settingid")
	public R settingIdIntoSession(@RequestBody Integer userid,@RequestParam HttpSession session);
}
